import config from '../config/config';
import request from '../utils/request';

let service = {};


service.formid = (param, cb) => {
  param = param || {};

  let requestUrl = config.api.formid;
  request({
    url: requestUrl,
    data: param,
    method: 'POST',
    success: res => {
      cb(res);
    },
    fail: res => {
      // cb(res);
    }
  });
}

// 接龙轮播
service.shufflingorder = (param, cb) => {
  param = param || {};

  let requestUrl = config.api.shufflingorder;
  request({
    url: requestUrl,
    data: param,
    method: 'GET',
    success: res => {
      cb(res);
    },
    fail: res => {
      // cb(res);
    }
  });
}

module.exports = service;